import request from '@/utils/request'

// 查询离职审批列表
export function listOaDepartApproval(query) {
  return request({
    url: '/module/oaDepartApproval/list',
    method: 'get',
    params: query
  })
}

// 查询离职审批详细
export function getOaDepartApproval(id) {
  return request({
    url: '/module/oaDepartApproval/' + id,
    method: 'get'
  })
}

// 新增离职审批
export function addOaDepartApproval(data) {
  return request({
    url: '/module/oaDepartApproval',
    method: 'post',
    data: data
  })
}

// 修改离职审批
export function updateOaDepartApproval(data) {
  return request({
    url: '/module/oaDepartApproval',
    method: 'put',
    data: data
  })
}

// 删除离职审批
export function delOaDepartApproval(id) {
  return request({
    url: '/module/oaDepartApproval/' + id,
    method: 'delete'
  })
}
